package cn.itcast.client;

import cn.itcast.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 熔断处理
 */
@FeignClient(value = "user-service",fallback = UserClicentImpl.class)
public interface UserClicent {
    @GetMapping("user/findOne")
    User queryAll();
}
